//
//  FundViewModel.m
//  HeXun
//
//  Created by 8003 on 15/11/26.
//  Copyright © 2015年 LGC. All rights reserved.
//

#import "FundViewModel.h"

@implementation FundViewModel

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        UILabel* nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 50, 100, 50)];
        nameLabel.text = @"Name:";
        [self addSubview:nameLabel];
        self.textName = [[UITextField alloc]initWithFrame:CGRectMake(150, 50, 150, 50)];
        [self addSubview:self.textName];
        
        UILabel* newest = [[UILabel alloc]initWithFrame:CGRectMake(50, 110, 100, 50)];
        newest.text = @"Newest:";
        [self addSubview:newest];
        self.textNewst = [[UITextField alloc]initWithFrame:CGRectMake(150, 110, 150, 50)];
        [self addSubview:self.textNewst];
        
        UILabel* time = [[UILabel alloc]initWithFrame:CGRectMake(50,170 , 100, 50)];
        time.text = @"time:";
        [self addSubview:time];
        self.textTime = [[UITextField alloc]initWithFrame:CGRectMake(150, 170, 150, 50)];
        [self addSubview:self.textTime];
    }
    return self;
}
@end
